import instance from "./instance";
interface ILogin {
  account: "jykl"; //用户名
  password: "a123456"; //密码
}
//登录
export const getLogin = (data: ILogin) => {
  return instance.post("/login", data);
};
//列表
export const getList = () => {
  return instance.get("article/list");
};
//详情
export const getXq = (id: number) => {
  return instance.get(`/article/${id}`);
};
